package com.niit.config;

import com.niit.beans.Car;
import com.niit.beans.User;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

/**
 * @ProjectName: springBoot3-demo
 * @Package: com.niit.config
 * @ClassName: AppConfigOne
 * @Author: zjh
 * @description: TODO
 * @date: 2024/1/2 9:00
 * @version: 1.0
 */
//@Configuration
@SpringBootConfiguration
public class AppConfigOne {
    @Bean
    public User getUser(){
        var user = new User();
        user.setId(2l);
        user.setName("李四");
        return user;
    }
    @Bean
    public Car carOne(){
        return new Car();
    }
}
